import vueRequest from '@/api/http'

const baseUrl = 'http://localhost:3000'
export default {
	// 分片校验
	verify(data: any) {
		return vueRequest.post({
			baseURL: baseUrl,
			url: '/verify',
			data,
			showLoading: false
		})
	},
	// 分片上传
	upload(data: any) {
		return vueRequest.post({
			baseURL: baseUrl,
			headers: {
				'Content-Type': 'multipart/form-data'
			},
			url: '/upload',
			data,
			showLoading: false
		})
	},
	// 分片合并
	merge(data: any) {
		return vueRequest.post({
			baseURL: baseUrl,
			url: '/merge',
			data,
			showLoading: false
		})
	}
}
